<%@ page language='java'
	import='java.util.*,javax.servlet.http.HttpServletRequest,com.shenfa.bean.Person'
	pageEncoding='UTF-8'%>
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<%
	String path = request.getContextPath();
	Object obj=request.getSession().getAttribute("login");
	if (null == obj) {
		response.sendRedirect(request.getContextPath() + ("/login.jsp"));
		return;
	}
%>
<html>
	<head>
		<title>深圳发展银行综合账单管理系统Demo</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-all.css" />
		<link rel="stylesheet" href="css/fileuploadfield.css" type="text/css"></link>
		<link rel="stylesheet" href="css/Ext.ux.form.LovCombo.css" type="text/css"></link>
		<link href="css/index.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="js/jquery/jquery-1.4.min.js"></script>
		<script type="text/javascript" src="js/ext/ext-base.js"></script>
		<script type="text/javascript" src="js/ext/ext-all-3.3.js"></script>
		<script type="text/javascript" src="js/ext/ext-lang-zh_CN.js"></script>
		<script type="text/javascript" src="js/ext/RowExpander.js"></script>
		<script type="text/javascript" src="js/ext/Spotlight.js"></script>
		<script type="text/javascript" src="js/ext/extend.js"></script>
		<script type="text/javascript" src="js/ext/Ext.ux.form.LovCombo.js"></script>
		<script type="text/javascript" src="js/frame/main.js"></script>
		<script type="text/javascript" src="js/tree/MenuTreeLoad.js"></script>
		<script type="text/javascript" src="js/panel/DesktopPanel.js"></script>
		<script type="text/javascript" src="js/ext/FileUploadField.js"></script>
		<script type="text/javascript">	
			var closewin = function(){
				$.ajax({async:false,url:"portal!logout.action",success:function(){}});		
				//alert("您已退出账单管理系统!");
				return true;	
			};
			
		  	env ="close";
			window.onbeforeunload = function (){
			env = "fresh";/*reFox 下总会被触发*/
			};
			window.onunload = function(){
			if(env=="fresh"){
				if(navigator.userAgent.indexOf("MSIE")>0){
					if(window.screenLeft >10000){
						closewin();							
					}else{
						//刷新
					}
				}  
				else if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){
					var clHeight = document.body.clientHeight;
					if(clHeight == 0){
						closewin();							
					}else{
						//刷新
					}
				}
			}
			else{
				closewin();	
			}
		};
			
			Ext.onReady(GMC.portal.init, GMC.portal);
   		</script>
		<style type="text/css">
			.x-grid3-body .x-grid3-td-numberer .x-grid3-cell-inner {text-align: center;
		</style>
	</head>
	<body>
	</body>
</html>
